package com.haidechizi.i18n.spring.boot.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ConfigurationProperties(prefix = I18nCacheProperties.I18N_CACHE_PREFIX)
public class I18nCacheProperties {

    public static final String I18N_CACHE_PREFIX = "i18n.cache";

    // ========= 配置redis缓存使用============= //
    private int jedisMaxTotal = 50;

    private int jedisMaxIdle = 10;

    private int jedisMaxWaitMillis = 1000;

    private boolean jedisTestOnBorrow = false;

    private String jedisIp;

    private int jedisPort = 6379;

    private int jedisTimeout;

    private String jedisPassword;

}
